package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the ESTADO_ORIG_PARTIDA database table.
 * 
 */
@Entity
@Table(name="ESTADO_ORIG_PARTIDA")
public class EstadoOrigPartida implements Serializable {
	private static final long serialVersionUID = 1L;
	private long refnumPart;
	private String field1;
	private BigDecimal field2;
	private String inEstPart;
	private String inEstd;
	private Date tsUltVerificacion;

    public EstadoOrigPartida() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="REFNUM_PART", unique=true, nullable=false)
	public long getRefnumPart() {
		return this.refnumPart;
	}

	public void setRefnumPart(long refnumPart) {
		this.refnumPart = refnumPart;
	}


	@Column(name="FIELD_1", length=50)
	public String getField1() {
		return this.field1;
	}

	public void setField1(String field1) {
		this.field1 = field1;
	}


	@Column(name="FIELD_2")
	public BigDecimal getField2() {
		return this.field2;
	}

	public void setField2(BigDecimal field2) {
		this.field2 = field2;
	}


	@Column(name="IN_EST_PART", length=1)
	public String getInEstPart() {
		return this.inEstPart;
	}

	public void setInEstPart(String inEstPart) {
		this.inEstPart = inEstPart;
	}


	@Column(name="IN_ESTD", length=1)
	public String getInEstd() {
		return this.inEstd;
	}

	public void setInEstd(String inEstd) {
		this.inEstd = inEstd;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_ULT_VERIFICACION")
	public Date getTsUltVerificacion() {
		return this.tsUltVerificacion;
	}

	public void setTsUltVerificacion(Date tsUltVerificacion) {
		this.tsUltVerificacion = tsUltVerificacion;
	}

}